package com.zhaoyizhe.demo.repository;

import com.zhaoyizhe.demo.component.UserComponent;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepository {
    public void sayHi(){
        System.out.println("hello repository...");
    }

    @Bean
    public UserComponent getUserComponent1(){
        return new UserComponent();
    }

    @Bean
    public UserComponent getUserComponent2(){
        return new UserComponent();
    }
}
